﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MillerApp.Stock.Common
{
    public class ContainerManager
    {
        private Dictionary<string, Form> container = new Dictionary<string, Form>();
        public Form GetForm(string classpath)
        {
            if (container.ContainsKey(classpath))
            {
                return container[classpath];
            }
            return null;
        }
        public void AddForm(string classpath, Form form)
        {
            if (container.ContainsKey(classpath))
            {
                return;
            }
            container.Add(classpath, form);
        }
    }
}
